package com.ruoyi.project.system.service.impl;

import com.ruoyi.project.system.domain.ShopCard;
import com.ruoyi.project.system.mapper.ShopCardMapper;
import com.ruoyi.project.system.service.ShopCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ShopCardServiceImpl implements ShopCardService {
    @Autowired
    private ShopCardMapper shopCardMapper;

    @Override
    public List<ShopCard> selectShopCardList(ShopCard shopCard) {
        return shopCardMapper.selectShopCardList(shopCard);
    }

    @Override
    public int insertShopCard(ShopCard shopCard) {
        return shopCardMapper.insertShopCard(shopCard);
    }

    @Override
    public int deleteTDrugsByIds(String [] list) {
        return shopCardMapper.deleteShopCardByIds(list);
    }

    @Override
    public int updateShopCardById(Map<String,Object> map) {
        return shopCardMapper.updateShopCardById(map);
    }
    public List<ShopCard> queryShopCardByUserAnddrugId(ShopCard shopCard){
       return shopCardMapper.queryShopCardByUserAnddrugId(shopCard );
    }

    @Override
    public int updateShopCardNumberById(ShopCard shopCard) {
        return shopCardMapper.updateShopCardNumberById(shopCard);
    }
}
